package com.upf1sh.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 消毒机器人
 * @TableName green_rover_030001
 */
@TableName(value ="green_rover_030001")
public class GreenRover030001 implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * GreenRover03消毒机器人型号 0001 1号
     */
    private Integer deviceId;

    /**
     * 机器人速度
     */
    private Double robotSpeed;

    /**
     * 机器人重量
     */
    private Double robotWeighting;

    /**
     * 位置
     */
    private Integer rebotLocation;

    /**
     * 设备状态信息：0运行 1正常停止 2障碍物停止 3无路径停止 4故障 5任务结束 6低电量停止 7强制停
     */
    private Integer robotStop;

    /**
     * （设备电量：0-1）
     */
    private Double robotElectricity;

    /**
     * 喷雾状态（0开 1停 2大 3小 4故障）
     */
    private Integer robotSpray;

    /**
     * 设备id
     */
    private String productId;

    /**
     * 设备名称
     */
    private String deviceName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * GreenRover03消毒机器人型号 0001 1号
     */
    public Integer getDeviceId() {
        return deviceId;
    }

    /**
     * GreenRover03消毒机器人型号 0001 1号
     */
    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    /**
     * 机器人速度
     */
    public Double getRobotSpeed() {
        return robotSpeed;
    }

    /**
     * 机器人速度
     */
    public void setRobotSpeed(Double robotSpeed) {
        this.robotSpeed = robotSpeed;
    }

    /**
     * 机器人重量
     */
    public Double getRobotWeighting() {
        return robotWeighting;
    }

    /**
     * 机器人重量
     */
    public void setRobotWeighting(Double robotWeighting) {
        this.robotWeighting = robotWeighting;
    }

    /**
     * 位置
     */
    public Integer getRebotLocation() {
        return rebotLocation;
    }

    /**
     * 位置
     */
    public void setRebotLocation(Integer rebotLocation) {
        this.rebotLocation = rebotLocation;
    }

    /**
     * 设备状态信息：0运行 1正常停止 2障碍物停止 3无路径停止 4故障 5任务结束 6低电量停止 7强制停
     */
    public Integer getRobotStop() {
        return robotStop;
    }

    /**
     * 设备状态信息：0运行 1正常停止 2障碍物停止 3无路径停止 4故障 5任务结束 6低电量停止 7强制停
     */
    public void setRobotStop(Integer robotStop) {
        this.robotStop = robotStop;
    }

    /**
     * （设备电量：0-1）
     */
    public Double getRobotElectricity() {
        return robotElectricity;
    }

    /**
     * （设备电量：0-1）
     */
    public void setRobotElectricity(Double robotElectricity) {
        this.robotElectricity = robotElectricity;
    }

    /**
     * 喷雾状态（0开 1停 2大 3小 4故障）
     */
    public Integer getRobotSpray() {
        return robotSpray;
    }

    /**
     * 喷雾状态（0开 1停 2大 3小 4故障）
     */
    public void setRobotSpray(Integer robotSpray) {
        this.robotSpray = robotSpray;
    }

    /**
     * 设备id
     */
    public String getProductId() {
        return productId;
    }

    /**
     * 设备id
     */
    public void setProductId(String productId) {
        this.productId = productId;
    }

    /**
     * 设备名称
     */
    public String getDeviceName() {
        return deviceName;
    }

    /**
     * 设备名称
     */
    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GreenRover030001 other = (GreenRover030001) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDeviceId() == null ? other.getDeviceId() == null : this.getDeviceId().equals(other.getDeviceId()))
            && (this.getRobotSpeed() == null ? other.getRobotSpeed() == null : this.getRobotSpeed().equals(other.getRobotSpeed()))
            && (this.getRobotWeighting() == null ? other.getRobotWeighting() == null : this.getRobotWeighting().equals(other.getRobotWeighting()))
            && (this.getRebotLocation() == null ? other.getRebotLocation() == null : this.getRebotLocation().equals(other.getRebotLocation()))
            && (this.getRobotStop() == null ? other.getRobotStop() == null : this.getRobotStop().equals(other.getRobotStop()))
            && (this.getRobotElectricity() == null ? other.getRobotElectricity() == null : this.getRobotElectricity().equals(other.getRobotElectricity()))
            && (this.getRobotSpray() == null ? other.getRobotSpray() == null : this.getRobotSpray().equals(other.getRobotSpray()))
            && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
            && (this.getDeviceName() == null ? other.getDeviceName() == null : this.getDeviceName().equals(other.getDeviceName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDeviceId() == null) ? 0 : getDeviceId().hashCode());
        result = prime * result + ((getRobotSpeed() == null) ? 0 : getRobotSpeed().hashCode());
        result = prime * result + ((getRobotWeighting() == null) ? 0 : getRobotWeighting().hashCode());
        result = prime * result + ((getRebotLocation() == null) ? 0 : getRebotLocation().hashCode());
        result = prime * result + ((getRobotStop() == null) ? 0 : getRobotStop().hashCode());
        result = prime * result + ((getRobotElectricity() == null) ? 0 : getRobotElectricity().hashCode());
        result = prime * result + ((getRobotSpray() == null) ? 0 : getRobotSpray().hashCode());
        result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
        result = prime * result + ((getDeviceName() == null) ? 0 : getDeviceName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", deviceId=").append(deviceId);
        sb.append(", robotSpeed=").append(robotSpeed);
        sb.append(", robotWeighting=").append(robotWeighting);
        sb.append(", rebotLocation=").append(rebotLocation);
        sb.append(", robotStop=").append(robotStop);
        sb.append(", robotElectricity=").append(robotElectricity);
        sb.append(", robotSpray=").append(robotSpray);
        sb.append(", productId=").append(productId);
        sb.append(", deviceName=").append(deviceName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}